<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PaginaViewDlg" widgetVar="PaginaViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewPaginaTitle}">

            <h:form id="PaginaViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{paginaController.selected != null}">

                        <h:outputText value="#{bundle.ViewPaginaLabel_idpagina}"/>
                        <h:outputText value="#{paginaController.selected.idpagina}" title="#{bundle.ViewPaginaTitle_idpagina}"/>

                        <h:outputText value="#{bundle.ViewPaginaLabel_titulo}"/>
                        <h:outputText value="#{paginaController.selected.titulo}" title="#{bundle.ViewPaginaTitle_titulo}"/>

                        <h:outputText value="#{bundle.ViewPaginaLabel_url}"/>
                        <h:outputText value="#{paginaController.selected.url}" title="#{bundle.ViewPaginaTitle_url}"/>

                        <h:outputText value="#{bundle.ViewPaginaLabel_icono}"/>
                        <h:outputText value="#{paginaController.selected.icono}" title="#{bundle.ViewPaginaTitle_icono}"/>

                        <h:outputText value="#{bundle.ViewPaginaLabel_tipo}"/>
                        <h:outputText value="#{paginaController.selected.tipo}" title="#{bundle.ViewPaginaTitle_tipo}"/>
                        
                        <h:outputText value="#{bundle.ViewPaginaLabel_posicion}"/>
                        <h:outputText value="#{paginaController.selected.posicion}" title="#{bundle.ViewPaginaTitle_posicion}"/>
                        
                        <h:outputText value="#{bundle.ViewPaginaLabel_permisologiaList}"/>
                        <h:outputText value="#{bundle.ViewPaginaLabel_bitacoraList}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="PaginaViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
